package org.way.iam.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;
import org.way.iam.entity.SysDeptEntity;

import java.util.List;

public interface SysDeptMapper extends BaseMapper<SysDeptEntity> {

    @Select("select dept_id from sys_user_dept where user_id = #{userId}")
    List<String> getDeptList(String userId);
}